package com.apusic.service;

import com.apusic.dao.TBaseUserDistrictDao;
import com.apusic.entity.TBaseUserDistrict;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("baseUserDistrictService")
public class BaseUserDistrictService {

	@Autowired
	private TBaseUserDistrictDao baseUserDistrictDao;

	public List<TBaseUserDistrict> getUserAccessDistrict(Map<String, Object> map) {
		return baseUserDistrictDao.getUserAccessDistrict(map);
	}

	public List<TBaseUserDistrict> selectByObj(TBaseUserDistrict userDistrict) {
		return baseUserDistrictDao.selectByObj(userDistrict);
	}

	public int saveUserDistrict(TBaseUserDistrict baseUserDistrict) {
		return baseUserDistrictDao.insert(baseUserDistrict);
	}
	
	
}
